package com.example.myapplication.bean;

import java.util.List;

public class MessageListBean {

    /**
     * msg : 成功
     * data : [{"id":3,"content":"内容","date":"2021-04-08 03:48:46","user":{"id":2,"name":"lfm","password":"123","email":"sq222@163.com","telephone":"15356788365","department":"信息学院","major":"移动应用开发","role":"学生"}}]
     * success : true
     */

    private String msg;
    private List<DataDTO> data;
    private boolean success;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataDTO> getData() {
        return data;
    }

    public void setData(List<DataDTO> data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public static class DataDTO {
        @Override
        public String toString() {
            return "DataDTO{" +
                    "id=" + id +
                    ", content='" + content + '\'' +
                    ", date='" + date + '\'' +
                    ", user=" + user +
                    '}';
        }

        /**
         * id : 3
         * content : 内容
         * date : 2021-04-08 03:48:46
         * user : {"id":2,"name":"lfm","password":"123","email":"sq222@163.com","telephone":"15356788365","department":"信息学院","major":"移动应用开发","role":"学生"}
         */

        private int id;
        private String content;
        private String date;
        private UserDTO user;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public UserDTO getUser() {
            return user;
        }

        public void setUser(UserDTO user) {
            this.user = user;
        }

        public static class UserDTO {
            @Override
            public String toString() {
                return "UserDTO{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", password='" + password + '\'' +
                        ", email='" + email + '\'' +
                        ", telephone='" + telephone + '\'' +
                        ", department='" + department + '\'' +
                        ", major='" + major + '\'' +
                        ", role='" + role + '\'' +
                        '}';
            }

            /**
             * id : 2
             * name : lfm
             * password : 123
             * email : sq222@163.com
             * telephone : 15356788365
             * department : 信息学院
             * major : 移动应用开发
             * role : 学生
             */

            private int id;
            private String name;
            private String password;
            private String email;
            private String telephone;
            private String department;
            private String major;
            private String role;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getEmail() {
                return email;
            }

            public void setEmail(String email) {
                this.email = email;
            }

            public String getTelephone() {
                return telephone;
            }

            public void setTelephone(String telephone) {
                this.telephone = telephone;
            }

            public String getDepartment() {
                return department;
            }

            public void setDepartment(String department) {
                this.department = department;
            }

            public String getMajor() {
                return major;
            }

            public void setMajor(String major) {
                this.major = major;
            }

            public String getRole() {
                return role;
            }

            public void setRole(String role) {
                this.role = role;
            }
        }
    }
}
